﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for ProfileRipository
/// </summary>
public static class ProfileRipository
{
    //DataCalendarDataContext DCD = new DataCalendarDataContext();
    

    public static bool AddDoctorVideo(tbl_DoctorVideo video)
    {
        DataProfileDataContext PDC = new DataProfileDataContext();
        try
        {
            PDC.tbl_DoctorVideos.InsertOnSubmit(video);
            PDC.SubmitChanges();
            return true;

        }
        catch
        {
            return false;
        }
    }
    public static bool AddDoctorFBVideo(tbl_DoctorFBVideo video)
    {
        DataProfileDataContext PDC = new DataProfileDataContext();
        try
        {
            PDC.tbl_DoctorFBVideos.InsertOnSubmit(video);
            PDC.SubmitChanges();
            return true;

        }
        catch
        {
            return false;
        }
    }

    public static bool AddDoctorCaseStudy(tbl_doctorCaseStudy video)
    {
        DataProfileDataContext PDC = new DataProfileDataContext();
        try
        {
            PDC.tbl_doctorCaseStudies.InsertOnSubmit(video);
            PDC.SubmitChanges();
            return true;

        }
        catch
        {
            return false;
        }
    }
    public static bool AddDoctorPresentation(tbl_doctorProfile video)
    {
        DataProfileDataContext PDC = new DataProfileDataContext();
        try
        {
            PDC.tbl_doctorProfiles.InsertOnSubmit(video);
            PDC.SubmitChanges();
            return true;

        }
        catch
        {
            return false;
        }
    }
}
